package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 用户项目角色 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "用户项目角色")
@Table ( name ="Account_Project_Role")
public class AccountProjectRole  implements Serializable {

	private static final long serialVersionUID =  3698436198051645147L;

	/**
	 * 用户项目角色ID
	 */
	@ApiModelProperty(value = "用户项目角色ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Account_Project_Role_Id" )
	private Long accountProjectRoleId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 账号ID
	 */
	@ApiModelProperty(value = "账号ID")
   	@Column(name = "Account_Id" )
	private String accountId;

	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 项目名称
	 */
	@ApiModelProperty(value = "项目名称")
   	@Column(name = "project" )
	private String project;

	/**
	 * 项目角色
	 */
	@ApiModelProperty(value = "项目角色")
   	@Column(name = "role" )
	private String role;

	/**
	 * 项目角色ID
	 */
	@ApiModelProperty(value = "项目角色ID")
   	@Column(name = "Project_Role_Id" )
	private Long projectRoleId;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getAccountProjectRoleId() {
		return this.accountProjectRoleId;
	}

	public void setAccountProjectRoleId(Long accountProjectRoleId) {
		this.accountProjectRoleId = accountProjectRoleId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getAccountId() {
		return this.accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getRole() {
		return this.role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getProjectRoleId() {
		return this.projectRoleId;
	}

	public void setProjectRoleId(Long projectRoleId) {
		this.projectRoleId = projectRoleId;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"accountProjectRoleId='" + accountProjectRoleId + '\'' +
					"projectId='" + projectId + '\'' +
					"accountId='" + accountId + '\'' +
					"projectRoleId='" + projectRoleId + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
